package cn.zhj.mvpart.mvp

import cn.zhj.mvpart.integration.IRepositoryManager

open class BaseModel : IModel {

    //用于管理网络请求层, 以及数据缓存层
    protected var mRepositoryManager : IRepositoryManager? = null

    fun setRepositoryManager(mRepositoryManager :IRepositoryManager){
        this.mRepositoryManager = mRepositoryManager
    }

    override fun onDestroy() {
        mRepositoryManager = null
    }
}